<template>
    <el-container class="layout-container">
        <el-aside width="auto">
            <el-scrollbar>
                <Aside />
            </el-scrollbar>
        </el-aside>
        <el-container direction="vertical">
            <Header />
            <el-main>
                <el-scrollbar>
                    <router-view v-slot="{ Component }">
                        <transition name="el-fade-in">
                            <component :is="Component" />
                        </transition>
                    </router-view>
                </el-scrollbar>
            </el-main>
        </el-container>
    </el-container>
</template>

<script lang="ts" setup>
    import Aside from './components/Aside.vue'
    import Header from './components/Header.vue'
</script>

<style scoped>
    .layout-container {
        height: 100vh;
    }
    .layout-container .el-aside {
        background-color: var(--el-menu-bg-color, #fff);
    }
    .layout-container .el-menu {
        border-right: none;
    }
</style>
